package dao

import (
	"shop_be/model"
	"shop_be/util"
)

func CreateShopcart(sc model.Shopcart) {

	util.Db.Create(&sc)

}
func FindShopCart(uid int) []model.Shopcart {
	sc := []model.Shopcart{}
	util.Db.Find(&sc, "uid=?",uid)
	return sc
}
